﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Stu_sys.Entity;

namespace Stu_sys.EntityConfig
{
    public class RoleEntityConfig : IEntityTypeConfiguration<Role>
    {
        public void Configure(EntityTypeBuilder<Role> builder)
        {
            builder.Property(p => p.RoleName).HasColumnType("varchar(30)");
            //builder.Property(p => p.UpdateTime.Date);
        }
    }
}
